package com.ruoyi.worker.domain;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * @ClassName EmploymentPlan
 * @Description 导入导出工具类
 * @Author leizhang
 * Date 2021/9/3 10:24 下午
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ExcelToolDomain extends BaseEntity {

    private static final long serialVersionUID = 1L;
    private Long id;
    @Excel(name = "姓名", width = 15)
    private String workerName;
    @Excel(name = "性别", replace = { "男_1", "女_2" })
    private Integer sex;
    @Excel(name = "身份证", width = 25)
    private String idCard;
    @Excel(name = "联系电话", width = 20)
    private String phoneCode;
    @Excel(name = "上班签到", width = 20,exportFormat="yyyy-MM-ddHH:mm:ss",importFormat = "yyyy-MM-ddHH:mm:ss")
    private Date signTime;
    @Excel(name = "下班签到", width = 20,exportFormat="yyyy-MM-ddHH:mm:ss",importFormat = "yyyy-MM-ddHH:mm:ss")
    private Date offWorkTime;
    @Excel(name = "薪资", width = 20)
    private Double salary;
    @Excel(name = "招聘渠道", width = 30)
    private String companyName;

    private Integer timeShift;

    @Excel(name = "班次", width = 15)
    private String timeShiftName;

    private String group;

    @Excel(name = "组别", width = 15)
    private String groupName;


    @Excel(name = "备注", width = 15)
    private String remark;


    @Excel(name = "出勤日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date workTime;

    @Excel(name = "用工需求单")
    private String orderCode;

    //导入次数
    private Integer importNum;

    //数据状态 0 数据缺失 1 正常
    private Integer statusFlag;
    //考勤状态 0 未知 1 异常 2 正常
    private Integer attendanceFlag;
    //渠道商id
    private Integer companyId;

    //班组（岗位） 卸车岗
    private String groupCode;

    //来源标记 1 导入 2 小程序报名
    private int   sourceFlag;
   //确认状态 0 未确认 1 确认
    private int   checkFlag;

}
